#ifndef THREAD1_H
#define THREAD1_H

#include <QThread>
#include <QWaitCondition>
#include "thread2.h"
#include <QMutex>

class thread1 : public QThread
{
    Q_OBJECT
public:
    explicit thread1(QObject *parent = 0);

    void run();
    void wakeFunc();

private:
    QWaitCondition cond;
    QMutex mutex;
    thread2 th2;
};

#endif // THREAD1_H
